package com.dycx.message.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dycx.common.entity.CommonDO;
import com.dycx.common.dto.handler.IntegerListTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 模版任务表(MessageTask)实体类
 *
 * @author wuzongbin
 * @since 2023-11-14 09:23:58
 */

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "message_task", autoResultMap = true)
public class MessageTaskDO extends CommonDO implements Serializable {


    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 任务名称
     */
    private String taskName;

    /**
     * 消息模板列表
     */
    @TableField(typeHandler = IntegerListTypeHandler.class)
    private List<Integer> templateIds;


}
